
<!DOCTYPE html>
<html lang="en" class="app">
<head>
  <meta charset="utf-8" />
  <title>WS云后台</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" href="../../rs/css/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/css/animate.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/css/simple-line-icons.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/css/font.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/css/app.css" type="text/css" />
  <link rel="stylesheet" href="../../rs/plugins/addtabs/css/bootstrap-addtabs.css" type="text/css" media="screen" />
</head>
<body class="">
  <section class="vbox">
    <header class="header header-md navbar navbar-fixed-top-xs" style="background: #F9F9F9;display: -webkit-box;">
      <div class="navbar-header aside bg-info dk">
        <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html">
          <i class="icon-list"></i>
        </a>
        <a href="index.php" class="navbar-brand text-lt">
          <i class="icon-cup"></i>
          <span class="hidden-nav-xs m-l-sm">WS云后台</span>
        </a>
        <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".user">
          <i class="icon-settings"></i>
        </a>
      </div>
      <ul class="nav navbar-nav nav-tabs hidden-xs" id="head" >
        <li style="float:left">
          <a href="#nav,.navbar-header" data-toggle="class:nav-xs,nav-xs" class="text-muted">
            <i class="fa fa-indent text"></i>
            <i class="fa fa-dedent text-active"></i>
          </a>
        </li>

        <li role="presentation" class="active" style="float:left">
          <a href="#home" aria-controls="home" role="tab" data-toggle="tab">
            首页
          </a>
        </li>
    </ul>

      <div class="navbar-right ">
        <ul class="nav navbar-nav m-n hidden-xs nav-user user">
          <li class="hidden-xs" style="position: fixed; right: 0px;">
            <a href="#" class="dropdown-toggle lt" data-toggle="dropdown">
              <i class="icon-bell"></i>
              <span class="badge badge-sm up bg-danger count">0</span>
            </a>
            <section class="dropdown-menu aside-xl animated fadeInUp">
              <section class="panel bg-white">
                <div class="panel-heading b-light bg-light">
                  <strong>你有<span class="count">0</span> 条消息</strong>
                </div>
              </section>
            </section>
          </li>
        </ul>
      </div>
    </header>
    <section>
      <section class="hbox stretch">
        <!-- .aside -->
        <aside class="bg-black dk aside hidden-print" id="nav">
          <section class="vbox" id="demo">
            <section class="w-f-md scrollable">
              <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
                <!-- nav -->
                <nav class="nav-primary hidden-xs">
                  <ul class="nav topbar" data-ride="collapse" v-cloak v-for="menu in mydata.data">
                    <li>
                      <a href="#" class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                        <i class="icon-bar-chart icon">
                        </i>
                        <span>{{menu.mc}}</span>
                      </a>
                      <ul class="nav dk text-sm">
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="syst" url="syst.php">
                            <i class="fa fa-angle-right"></i>
                            <span>系统设置</span>
                          </a>
                        </li>

                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="sygr" url="sygr.php">
                            <i class="fa fa-angle-right"></i>

                            <span>权限组</span>
                          </a>
                        </li>

                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="sype" url="sype.php">
                            <i class="fa fa-angle-right"></i>
                            <span>设置权限</span>
                          </a>
                        </li>
                      </ul>
                    </li>
                    <!-- <li >
                      <a href="#" class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                        <i class="icon-bar-chart icon">
                        </i>
                        <span>基础数据</span>
                      </a>
                      <ul class="nav dk text-sm">

                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="syus" url="syus.php">
                          <i class="fa fa-angle-right"></i>
                            <span>平台用户</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="sysh" url="sysh.php">
                            <i class="fa fa-angle-right"></i>
                            <span>门店</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="sysg" url="sysg.php">
                            <i class="fa fa-angle-right"></i>
                            <span>门店组</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="prsh" url="prsh.php">
                            <i class="fa fa-angle-right"></i>
                            <span>门店商品资料</span>
                          </a>
                        </li>

                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="slst" url="slst.php">
                            <i class="fa fa-angle-right"></i>
                            <span>产品类别</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="slpr" url="slpr.php">
                            <i class="fa fa-angle-right"></i>
                            <span>产品资料</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="prsp" url="prsp.php">
                            <i class="fa fa-angle-right"></i>
                            <span>产品商户关系表</span>
                          </a>
                        </li>


                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="przh" url="przh.php">
                            <i class="fa fa-angle-right"></i>
                            <span>组合成分</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="metc" url="metc.php">
                            <i class="fa fa-angle-right"></i>
                            <span>套餐设置</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="sypy" url="sypy.php">
                            <i class="fa fa-angle-right"></i>
                            <span>付款方式</span>
                          </a>
                        </li>

                      </ul>
                    </li>
                    <li >
                      <a   class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                        <i class="icon-pie-chart icon">
                        </i>
                        <span>运营查询</span>
                      </a>
                      <ul class="nav dk text-sm">
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="yyhz" url="yyhz.php">
                            <i class="fa fa-angle-right"></i>
                            <span>营业汇总日报</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="xsrb" url="xsrb.php">
                            <i class="fa fa-angle-right"></i>
                            <span>销售汇总日报</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="xfmx" url="xfmx.php">
                            <i class="fa fa-angle-right"></i>
                            <span>会员消费明细</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="czmx" url="czmx.php">
                            <i class="fa fa-angle-right"></i>
                            <span>会员充值明细</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="yymx" url="yymx.php">
                            <i class="fa fa-angle-right"></i>
                            <span>营业明细日报</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="mxrb" url="mxrb.php">
                            <i class="fa fa-angle-right"></i>
                            <span>销售明细日报</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="xshz" url="xshz.php">
                            <i class="fa fa-angle-right"></i>
                            <span>商品销售汇总报表</span>
                          </a>
                        </li>


                      </ul>
                    </li>
                    <li>
                      <a href="#" class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                        <i class="icon-bar-chart icon">
                        </i>
                        <span>库存报表</span>
                      </a>
                      <ul class="nav dk text-sm">
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="zcbb" url="zcbb.php">
                            <i class="fa fa-angle-right"></i>

                            <span>总仓报表</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="kcmx" url="kcmx.php">
                            <i class="fa fa-angle-right"></i>
                            <span>商品库存明细</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="kchz" url="kchz.php">
                            <i class="fa fa-angle-right"></i>
                            <span>商品库存汇总</span>
                          </a>
                        </li>

                      </ul>
                    </li>
                    <li>
                      <a href="#" class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                        <i class="icon-bar-chart icon">
                        </i>
                        <span>营业分析</span>
                      </a>
                      <ul class="nav dk text-sm">

                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="yyer" url="yyer.php">
                            <i class="fa fa-angle-right"></i>

                            <span>营业饼图</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="prbb" url="prbb.php">
                            <i class="fa fa-angle-right"></i>

                            <span>产品销量排行</span>
                          </a>
                        </li>
                        <li>
                          <a href="javascript:void(0)"  class="auto" data-addtab="fkfs" url="fkfs.php">
                            <i class="fa fa-angle-right"></i>
                            <span>付款方式比例</span>
                          </a>
                        </li>



                      </ul>
                    </li> -->

                  </ul>
                </nav>
                <!-- / nav -->
              </div>
            </section>

            <footer class="footer hidden-xs no-padder text-center-nav-xs">
              <div class="bg hidden-xs ">
                  <div class="dropdown dropup wrapper-sm clearfix">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      <span class="thumb-sm avatar pull-left m-l-xs">
                        <img src="../../rs/img/logo.jpg" class="dker" alt="logo">
                        <i class="on b-black"></i>
                      </span>
                      <span class="hidden-nav-xs clear" style="padding-top:10px">
                        <span class="text-muted block m-l text-xs">
                          <strong class="" id="bh">bh</strong>
                          <b class="caret"></b>
                        </span>
                         <span class="text-muted text-xs block m-l" id="mc"></span>
                      </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight aside text-left">
                      <li>
                        <a href="javascript:void(0)" onclick="open_modal()">修改密码</a>
                      </li>
                      <li>
                        <a href="javascript:void(0)" onclick="resetcookie()">退出登录</a>
                      </li>
                    </ul>
                  </div>
                </div>
            </footer>
          </section>
        </aside>
        <!-- /.aside -->
        <section id="content" class="scrollable " style="background: #fff;"  >
          <section class="vbox">
            <section class="hbox stretch">
              <aside >
                <section class="vbox">
                  <div class="tab-content">
                    <div id="tabs" >
                      <div class="tab-content" id="nr">
                        <div role="tabpanel" class="tab-pane active" id="home" style="position: absolute;width: 100%;    padding: 15px;">
                          <div class="row">
                            <div class="col-sm-3">
                              <div class="widget style1 red-bg">
                                <div class="row">
                                  <div class="col-xs-4">
                                    <i class="fa fa-table fa-5x"></i>
                                  </div>
                                  <div class="col-xs-8 text-right">
                                    <span> 昨日订单 </span>
                                    <h2 class="font-bold">10</h2>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <div class="col-sm-3">
                              <div class="widget style1 navy-bg">
                                <div class="row">
                                  <div class="col-xs-4">
                                    <i class="fa fa-tags fa-5x"></i>
                                  </div>
                                  <div class="col-xs-8 text-right">
                                    <span> 今日订单 </span>
                                    <h2 class="font-bold">2</h2>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <div class="col-sm-3">
                              <div class="widget style1 lazur-bg">
                                <div class="row">
                                  <div class="col-xs-4">
                                    <i class="fa fa-tags fa-5x"></i>
                                  </div>
                                  <div class="col-xs-8 text-right">
                                    <span> 待发货 </span>
                                    <h2 class="font-bold">7</h2>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <div class="col-sm-3">
                              <div class="widget style1 yellow-bg">
                                <div class="row">
                                  <div class="col-xs-4">
                                    <i class="fa fa-list-alt fa-5x"></i>
                                  </div>
                                  <div class="col-xs-8 text-right">
                                    <span> 所有订单 </span>
                                    <h2 class="font-bold">123</h2>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>

                          <div class="row">
                            <div class="col-lg-12">

                              <div class="row">
                                <div class="col-sm-6 portlet">
                                  <section class="panel panel-info portlet-item">
                                    <header class="panel-heading">
                                      Quick link
                                    </header>
                                    <div class="list-group bg-white">
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-envelope"></i> Inbox
                                      </a>
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-eye"></i> Profile visits
                                      </a>
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-phone"></i> Call
                                      </a>
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-comments-o"></i> Messages
                                      </a>
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-bookmark"></i> Bookmarks
                                      </a>
                                      <a href="#" class="list-group-item">
                                        <i class="fa fa-fw fa-bell"></i> Notifications
                                      </a>
                                    </div>
                                  </section>

                                </div>
                                <div class="col-sm-6 portlet">
                                  <section class="panel panel-success portlet-item">
                                    <header class="panel-heading">
                                      Connection
                                    </header>
                                    <ul class="list-group alt">
                                      <li class="list-group-item">
                                        <div class="media">
                                          <span class="pull-left thumb-sm"><img src="../../rs/img/a1.png" alt="..." class="img-circle"></span>
                                          <div class="pull-right text-success m-t-sm">
                                            <i class="fa fa-circle"></i>
                                          </div>
                                          <div class="media-body">
                                            <div><a href="#">Chris Fox</a></div>
                                            <small class="text-muted">about 2 minutes ago</small>
                                          </div>
                                        </div>
                                      </li>
                                      <li class="list-group-item">
                                        <div class="media">
                                          <span class="pull-left thumb-sm"><img src="../../rs/img/a2.png" alt="..." class="img-circle"></span>
                                          <div class="pull-right text-muted m-t-sm">
                                            <i class="fa fa-circle"></i>
                                          </div>
                                          <div class="media-body">
                                            <div><a href="#">Amanda Conlan</a></div>
                                            <small class="text-muted">about 2 hours ago</small>
                                          </div>
                                        </div>
                                      </li>
                                      <li class="list-group-item">
                                        <div class="media">
                                          <span class="pull-left thumb-sm"><img src="../../rs/img/a3.png" alt="..." class="img-circle"></span>
                                          <div class="pull-right text-warning m-t-sm">
                                            <i class="fa fa-circle"></i>
                                          </div>
                                          <div class="media-body">
                                            <div><a href="#">Dan Doorack</a></div>
                                            <small class="text-muted">3 days ago</small>
                                          </div>
                                        </div>
                                      </li>
                                      <li class="list-group-item">
                                        <div class="media">
                                          <span class="pull-left thumb-sm"><img src="../../rs/img/a4.png" alt="..." class="img-circle"></span>
                                          <div class="pull-right text-danger m-t-sm">
                                            <i class="fa fa-circle"></i>
                                          </div>
                                          <div class="media-body">
                                            <div><a href="#">Lauren Taylor</a></div>
                                            <small class="text-muted">about 2 minutes ago</small>
                                          </div>
                                        </div>
                                      </li>
                                    </ul>
                                  </section>

                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </section>
              </aside>
            </section>
          </section>
        </section>
      </section>
    </section>
  </section>




  <div style="display: none" id="open_edit">
    <form id="edit_from">
      <div class="input-group" style="padding: 20px 20px 10px 20px; display:none;">
        <div class="input-group-btn">
          <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown">编号</button>
        </div>
        <input type="text" class="form-control" id="bh_val" name="bh">
      </div>
      <div class="input-group" style="padding: 20px 20px 10px 20px;">
        <div class="input-group-btn">
          <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown">原密码</button>
        </div>
        <input type="password" class="form-control "   name="omm">
      </div>
      <div class="input-group" style="padding: 0px 20px 10px 20px;">
        <div class="input-group-btn">
          <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown">新密码</button>
        </div>
        <input type="password" class="form-control "   name="nmm">
      </div>
      <div class="input-group" style="padding: 0px 20px 10px 20px;">
        <div class="input-group-btn">
          <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown">确认密码</button>
        </div>
        <input type="password" class="form-control"   name="qr_mm">
      </div>
      <div class="lay_foot">
        <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown"
                style="background-color: #e2e2e2;" onclick="layer.closeAll()">返回
        </button>
        <button type="button" class="btn btn-white dropdown-toggle " data-toggle="dropdown"
                style="background-color: #f54141;color: white;float: right" id="save_do">保存
        </button>
      </div>
    </form>
  </div>


  <!--页面加载缓冲图标-->
  <div id='loadingDiv' style="position:absolute;z-index:1000;top:0px; left:0px;
	width:100%;height:100%;background:white;text-align: center;">
    <h1 style="top: 30%; position: relative;">
      <img src="../../rs/img/loading-2.gif" /><br>
    </h1>
  </div>
  <script src="../../rs/js/jquery.min.js"></script>
  <script src="../../rs/plugins/layer/layer.min.js"></script>
  <!-- Bootstrap -->
  <script src="../../rs/js/bootstrap.js"></script>
  <!-- App -->
  <script src="../../rs/js/app.js"></script>
  <script src="../../rs/js/jquery.cookie.js"></script>
  <script src="../../rs/js/common_qj.js"></script>


  <script src="../../rs/plugins/addtabs/js/bootstrap-addtabs.js"></script>
  <script type="text/javascript" src="../../rs/plugins/easyui/jquery.easyui.min.js"></script>
  <script src="../../rs/js/vue.min.js"></script>
  <script type="text/javascript">

    /*页面加载缓冲*/
    function closeLoading() {
      $("#loadingDiv").fadeOut("normal", function () {
        $(this).remove();
      });
    }
    var no;
    $.parser.onComplete = function () {
      if (no) clearTimeout(no);
      no = setTimeout(closeLoading, 1000);
    }
    var sign = URLencode($.cookie('sign'));

    var bh = $.cookie('bh');
    var mc = $.cookie('mc');

    $("#bh_val").val(bh);
    $(function(){
      $('#tabs').addtabs({monitor:'.topbar'});
      $("#bh").html(bh);
      $("#mc").html(mc);
      f_sheard();
    });




    //Vue做列表渲染
        var demo = new Vue({
            el: '#demo',
            data: {
                mydata: ''
            }, methods: {

            }
        });
        /****获取列表数据*****/
        function f_sheard(){
            $.ajax({
                type: "post",
                url:G_url+'doi/see/symn',
                data: 'sign=' + sign,
                dataType: "json",
                success: function (result){
                    if (result.ok) {
                        demo.mydata={"ok":true,"data":[{"rid":2,"bh":" ","mc":"系统管理","pid":0,"px":0,"sub":[{"rid":85,"pid":2,"bh":"syst.php","mc":"系统设置","mqx":0,"sqx":"新增,"},{"rid":86,"pid":2,"bh":"sygr.php","mc":"权限组"},{"rid":87,"pid":2,"bh":"sype.php","mc":"设置权限"}]},{"rid":3,"bh":" ","mc":"基础数据","pid":0,"px":0,"sub":[{"rid":7,"pid":3,"bh":"syus.php","mc":"平台用户"},{"rid":8,"pid":3,"bh":"sysh.php","mc":"门店"},{"rid":9,"pid":3,"bh":"sysg.php","mc":"门店组"},{"rid":10,"pid":3,"bh":"prsh.php","mc":"门店商品资料","mqx":1,"sqx":"新增,"},{"rid":11,"pid":3,"bh":"slst.php","mc":"产品类别"},{"rid":12,"pid":3,"bh":"slpr.php","mc":"产品资料"},{"rid":13,"pid":3,"bh":"prsp.php","mc":"产品商户关系表"},{"rid":14,"pid":3,"bh":"przh.php","mc":"组合成份"},{"rid":15,"pid":3,"bh":"metc.php","mc":"套餐设置"},{"rid":16,"pid":3,"bh":"sypy.php","mc":"付款方式"}]},{"rid":4,"bh":" ","mc":"运营查询","pid":0,"px":0,"sub":[{"rid":88,"pid":4,"bh":"yyhz.php","mc":"营业汇总日报"},{"rid":89,"pid":4,"bh":"xsrb.php","mc":"销售汇总日报"},{"rid":90,"pid":4,"bh":"xfmx.php","mc":"会员消费明细","qxc":[" 新增","删除","保存"]},{"rid":91,"pid":4,"bh":"czmx.php","mc":"会员充值明细"},{"rid":92,"pid":4,"bh":"yymx.php","mc":"营业明细日报"},{"rid":93,"pid":4,"bh":"mxrb.php","mc":"销售明细日报"},{"rid":94,"pid":4,"bh":"xshz.php","mc":"商品销售汇总报表"}]},{"rid":5,"bh":" ","mc":"库存报表","pid":0,"px":0,"sub":[{"rid":95,"pid":5,"bh":"zcbb.php","mc":"总仓报表"},{"rid":96,"pid":5,"bh":"kcmx.php","mc":"库存明细"},{"rid":97,"pid":5,"bh":"kchz.php","mc":"商品库存汇总"}]},{"rid":6,"bh":" ","mc":"营业分析","pid":0,"px":0,"sub":[{"rid":17,"pid":6,"bh":"yyer.php","mc":"营业饼图"},{"rid":18,"pid":6,"bh":"prbb.php","mc":"产品销量排行"},{"rid":84,"pid":6,"bh":"fkfs.php","mc":"付款方式比例"}]}]};
                    }else{
                    window.location.href = 'login.html';
                    }
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                }
            });

        }


    function open_modal(){
      $("#open_edit").show();
      layer.open({
        title: "修改密码",
        type: 1,
        offset: '100px',//top顶部偏移
        skin: 'layui-layer-rim', //加上边框
        area: ['400px', '350px'], //宽高
        shadeClose: true,
        content: $('#edit_from')
      });
    }

    $("#save_do").on("click",function(){
      var omm = $.trim($("input[name='omm']").val()) ;
      var nmm = $.trim($("input[name='nmm']").val()) ;
      if(!f_valid()) return;
        $.ajax({
          type: "post",
          url:G_url+'login/editpass'+'?sign='+sign,
         /* data:$('#edit_from').serialize(),*/
          data:"bh="+bh+"&omm="+omm+"&nmm="+nmm,
          dataType: "json",
          success: function (result){
            if (result.ok) {
              layer.closeAll();
              layer.msg("修改成功！");
            }else{
              layer.msg(result.msg);
            }
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
          }
        });

    });

    var f_valid = function(){
      var nmm = $.trim($("input[name='nmm']").val()) ;
      var qr_mm = $.trim($("input[name='qr_mm']").val()) ;
      if( nmm !==qr_mm) {
        layer.msg('两次输入的密码不一致');
        return false;
      }
      return true;
    };

  </script>




</body>
</html>
